/**
* @file osal_task.c
* @brief OSAL task manager 
* @details 
* @author huangbin
* @version V1.0.0
* @date 2025-04-25
* @copyright All documents are copyrighted by Shenzhen Xinlongwei Technology Co., LTD.
*            They may not be used for commercial purposes without permission
*/
#include "inc.h"

//OS任务处理函数数组
const pTaskEventHandlerFn tasksArr[] = 
{
    taskGUI,
    taskSystem,
//  taskModbus,
};

uint32_t taskEventsTable[SIZEOF(tasksArr)];
const uint8_t tasksCnt = SIZEOF(tasksArr);

//os 任务初始化。每一个任务的初始化函数都放这里。
void osalTasksInit( void )
{
    uint8_t task_id = 0;

    memset( taskEventsTable, 0, sizeof(taskEventsTable) );

    //顺序要和tasksArr里面的任务函数顺序一致
    taskGUIInit(task_id++);
    taskSystemInit(task_id++ );
    //	taskModbusInit(task_id++);
}

